package cate.game.role.res.worldtree.msg;

import cate.common.annotation.FuncOpenJudge;
import cate.common.table.d.GDFunc;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBWorldTree;

@ClientMsg(title = "英雄数据の 请求")
@FuncOpenJudge(GDFunc.WORLD_TREE)
public class HeroShareDataReq implements MsgInput {

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.sendNow(new HeroShareDataResp(cc.getRole()));
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBWorldTree.DATA_REQ;
    }
}
